integration trick for sin^mx cos^nx